package com.example.base_kotlin_xml.api

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

/**
 * @Author jiangKunKun
 * @CreateDate 2025/7/9
 * @Description
 * @SpittingGrooves
 */
@Module
@InstallIn(SingletonComponent::class)
object AppApiService {

    @Provides
    @Singleton
    fun provideMainApiService(retrofit: Retrofit): MainApiService {
        return retrofit.create(MainApiService::class.java)
    }
}